﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace AjaxControlFramework
{
    public class NamedControlDefinition
    {
        //------// Properties \\--------------------------------------------\\
        public virtual string ControlName { get; set; }
        public virtual string SearchCriteria { get; set; }


        private NamedControlSearchType _searchType = NamedControlSearchType.ID;
        public virtual NamedControlSearchType SearchType
        {
            get { return _searchType; }
            set { _searchType = value; }
        }
        //------\\ Properties //--------------------------------------------//



        //------// Constructors \\------------------------------------------\\
        public NamedControlDefinition(string controlName, string searchCriteria, NamedControlSearchType searchType)
        {
            ControlName = controlName;
            SearchCriteria = searchCriteria;
            SearchType = searchType;
        }


        public NamedControlDefinition(string controlName, string searchCriteria)
            : this(controlName, searchCriteria, NamedControlSearchType.ID)
        {}


        public NamedControlDefinition(string controlName)
            : this(controlName, null, NamedControlSearchType.ID)
        { }
        //------\\ Constructors //------------------------------------------//



        //------// Methods \\-----------------------------------------------\\

        //------\\ Methods //-----------------------------------------------//
    }
}